source/dpq/connection.d(62,31): Error: cast from `immutable(char)*` to `char*` not allowed in safe code source/dpq/connection.d(62,64): Error: cannot take address of local `err` in `@safe` function `this` source/dpq/connection.d(65,30): Error: `@safe` constructor `dpq.connection.Connection.this` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dpq/connection.d(72,22): Error: address of variable `this` assigned to `_dpqLastConnection` with longer lifetime source/dpq/connection.d(98,27): Error: `@safe` function `dpq.connection.Connection.db` cannot call `@system` function `std.conv.to!string.to!(char*).to` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(219,7): `std.conv.to!string.to!(char*).to` is declared here source/dpq/connection.d(104,29): Error: `@safe` function `dpq.connection.Connection.user` cannot call `@system` function `std.conv.to!string.to!(char*).to` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(219,7): `std.conv.to!string.to!(char*).to` is declared here source/dpq/connection.d(110,29): Error: `@safe` function `dpq.connection.Connection.password` cannot call `@system` function `std.conv.to!string.to!(char*).to` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(219,7): `std.conv.to!string.to!(char*).to` is declared here source/dpq/connection.d(116,29): Error: `@safe` function `dpq.connection.Connection.host` cannot call `@system` function `std.conv.to!string.to!(char*).to` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(219,7): `std.conv.to!string.to!(char*).to` is declared here source/dpq/connection.d(122,29): Error: `@safe` function `dpq.connection.Connection.port` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dpq/connection.d(222,5): Error: `pTypes.ptr` cannot be used in `@safe` code, use `&pTypes[0]` instead source/dpq/connection.d(223,24): Error: `pValues.ptr` cannot be used in `@safe` code, use `&pValues[0]` instead source/dpq/connection.d(224,5): Error: `pLengths.ptr` cannot be used in `@safe` code, use `&pLengths[0]` instead source/dpq/connection.d(225,5): Error: `pFormats.ptr` cannot be used in `@safe` code, use `&pFormats[0]` instead source/dpq/connection.d(235,6): Error: `pTypes.ptr` cannot be used in `@safe` code, use `&pTypes[0]` instead source/dpq/connection.d(236,25): Error: `pValues.ptr` cannot be used in `@safe` code, use `&pValues[0]` instead source/dpq/connection.d(237,6): Error: `pLengths.ptr` cannot be used in `@safe` code, use `&pLengths[0]` instead source/dpq/connection.d(238,6): Error: `pFormats.ptr` cannot be used in `@safe` code, use `&pFormats[0]` instead source/dpq/connection.d(305,37): Error: `@safe` function `dpq.connection.Connection.errorMessage` cannot call `@system` function `std.conv.to!string.to!(char*).to` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/conv.d(219,7): `std.conv.to!string.to!(char*).to` is declared here source/dpq/connection.d(331,12): Error: `@safe` function `dpq.connection.Connection.escapeLiteral` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/string.d(222,15): `std.string.fromStringz!char.fromStringz` is declared here source/dpq/connection.d(347,12): Error: `@safe` function `dpq.connection.Connection.escapeIdentifier` cannot call `@system` function `std.string.fromStringz!char.fromStringz` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.